home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / ex8-7.c < prev    next >
C/C++ Source or Header  |  1990-05-15  |  498b  |  18 lines

  1. // ex8-7.c -- sorting Patient records by name
  2.  
  3. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/ex8-7.c,v 3.0 90/05/15 22:46:24 kgorlen Rel $
  4.  
  5. #include "SortedCltn.h"
  6. #include "String.h"
  7. #include "Patient.h"
  8.  
  9. main()
  10. {
  11.     SortedCltn cltn;
  12.     cltn.add(*new Patient("Smith John A.","111-22-3333",22222));
  13.     cltn.add(*new Patient("Fried Harry I.","123-45-6789",22221));
  14.     cltn.add(*new Patient("Chavez Maria G.","444-555-6666",22223));
  15.  
  16.     cout << cltn << endl;
  17. }
  18.